package cn.wolfcode.wolf2w.respository;

import cn.wolfcode.wolf2w.domain.Banner;
import cn.wolfcode.wolf2w.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 区域持久化操作接口
 */
@Repository
public interface BannerRepository extends MongoRepository<Banner, String> {


    /**
     * 查询指定类型的banner
     *
     * @param i
     * @param type
     * @param pageable
     * @return
     */
    List<Banner> findByTypeAndState(int type, int state, Pageable pageable);
}
